<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        div {
            border: 1px solid red;
        }

        img {
            /* 解决方案一 */
            /* vertical-align: bottom; */
            /* 解决方案二 */
            display: block;
        }
    </style>

</head>
<body>
    <img src="div包含图片地测部留白原因与解决方案.png" alt="">
    <br><br>
    
    <div>
        <img src="../../imgs/123.jpg" alt="">
    </div>

</body>
</html>